package cn.iocoder.yudao.module.member.api.bankinfo;

import cn.iocoder.yudao.module.member.api.bankInfo.BankAccountInfoApi;
import cn.iocoder.yudao.module.member.api.bankInfo.dto.BankAccountInfoDTO;
import cn.iocoder.yudao.module.member.convert.bankinfo.BankAccountInfoConvert;
import cn.iocoder.yudao.module.member.service.bankaccountinfo.BankAccountInfoService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

@Service
public class BankAccountInfoApiImpl implements BankAccountInfoApi {
    @Resource
    private BankAccountInfoService bankAccountInfoService;
    @Override
    public BankAccountInfoDTO getBankAccountInfo(Long bankInfoId) {
        return BankAccountInfoConvert.INSTANCE.convert1(bankAccountInfoService.getBankAccountInfo(bankInfoId));
    }
}
